<?php

/**
 * Agenda form base class.
 *
 * @package    sinc
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
 */
class BaseAgendaForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id_agenda'      => new sfWidgetFormInputHidden(),
      'id_utilisateur' => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'id_agenda'      => new sfValidatorPropelChoice(array('model' => 'Agenda', 'column' => 'id_agenda', 'required' => false)),
      'id_utilisateur' => new sfValidatorInteger(),
    ));

    $this->widgetSchema->setNameFormat('agenda[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Agenda';
  }


}
